<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册用户</title>
</head>
<body>
    <div>
        <form method="post">
            <div>
                <label>手机号：</label><input name="phone">
            </div>
            <div>
                <label>密码：</label><input type="password" name="pwd">
            </div>
            <div>
                <label>确认密码：</label><input type="password" onchange="checkPwd(this)">
            </div>
            <div>
                <button value="新增用户">新增用户</button>
            </div>

        </form>
    </div>
<script>
    function checkPwd(t){
        //比较2次的密码
    }
    function add(){
        //ajax
    }
</script>
</body>
</html>